let btn = document.querySelector("#btn");
let send = document.querySelector("#send");
let { ipcRenderer } = require('electron');
btn.onclick = () => {
    ipcRenderer.send('openWindow')
    let aid = 123;
    localStorage.setItem('aid', aid)
}
send.onclick = () => {
    let aid = 123;
    ipcRenderer.send('openWindow', aid)
}
ipcRenderer.on('toIndex', (event, data) => {
    console.log("执行",data)
})